package org.project.dao.user;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.project.pojo.Admintime;
import org.project.pojo.Appoiment;
import org.project.pojo.Comment;
import org.project.pojo.CommentRecord;
import org.project.pojo.Download0;
import org.project.pojo.Fengye;
import org.project.pojo.Message;
import org.project.pojo.Order;
import org.project.pojo.OrderExample;
import org.project.pojo.Orderrecord;
import org.project.pojo.Orderrecord2;
import org.project.pojo.Ordertime1;
import org.project.pojo.Outtime;
import org.project.pojo.ShopTime;
import org.project.pojo.TypeDetail;

public interface OrderMapper {
    int countByExample(OrderExample example);

    int deleteByExample(OrderExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Order record);

    int insertSelective(Order record);

    List<Order> selectByExample(OrderExample example);

    Order selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Order record, @Param("example") OrderExample example);

    int updateByExample(@Param("record") Order record, @Param("example") OrderExample example);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);
    
    int insertorder(Order order);
    
    int insertorder2(Order order);
    
    int inserttypedetail(TypeDetail typeDetail);
    
    int insertshoptime(ShopTime shoptime);
    
    List<Orderrecord>selectorder(String openid);
    
    List<TypeDetail>selecttypedetails(Orderrecord orderrecord);
    
    public int cancelorder(String orderid);
    
    public int outtimeorder(String orderid);
    
    
    int insertcomment(Comment comment);
    
    Appoiment selectxuzhi();
    
    Appoiment selectxieyi();
    
    int editagreement1(Appoiment appoiment);
    
    int editnotice1(Appoiment appoiment);
    
    
    Order selectwzforder(String openid);
    
    int payorder(String orderid);
    
   List<Admintime>selectorderTime(Ordertime1 ordertime1);
    
    
    //后台模块部分
    
    
    int payyue(String orderid);
    
    List<Order> selectwc(Fengye fengye);
    
    int selectwccount();
    
    List<Order> selectyewzf(Fengye fengye);
  
    int  selectyewzfcount();   
    
    
    List<Order> selectwzf2(Fengye fengye);
    
    
    int  selectwzf2count();
    
    
    List<Order> selectyqx(Fengye fengye);
    
    int selectyqxcount();
    
    List<CommentRecord> selectcomment(Fengye fengye); 
    
    
    int deletecomment(CommentRecord commentRecord);
    
    
    
    int selectcommentcount();
    
    int deleteorder(String orderid);
    
    List<TypeDetail> selecttypes(Order order);
    
    Order selectorder1(String orderid);
    
    List<Orderrecord2> selectwcorder2(String openid);
    
    List<Download0> seephoto(String orderid);
    
    int uploadphoto(Download0 download0);
    
    Download0 selectbyid(Download0 download0);
    
    List<Download0>selectupurls();
    
    int deletebyid(Download0 download0);
    
    int deletebyorderid(String orderid);
    
    int insertmessage(Message message);
    
    List<Message> selectmessage();
    
    int updatemessage(Message message);
    
    Order selectyuewzf333(String orderid);
    
    int insertouttime(Outtime outtime);
    
    List<Outtime> selectouttime();
    
    int deleteouttime(String orderid);
    
   //订单失效
    int dosx(String orderid);    
    
    List<Order> selectsx(Fengye fengye);
    
    int selectsxcount();
    
    int selectwtkcount();
    
    int selectytkcount();
    
    int tuikuan(String orderid);
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
}